﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Skyhook.MultipleMasterPagesWeb {
    public partial class _Default : System.Web.UI.Page {
        protected void Page_PreInit(object sender, EventArgs e) {
            var useMasterPage = Request.QueryString["use"];
            if (useMasterPage == "1")
                MasterPageFile = "~/Master1.Master";
            else if (useMasterPage == "2")
                MasterPageFile = "~/Master2.Master";
        }
    }
}
